package com.lvkerry.generate.bean;

import java.math.BigDecimal;

/**
 * @author Kerry on 18/03/07
 */

public class MenuBean {
    private Long menuId;
    private Long addTime;
    private String avatarUrl;
    private String desp;
    private Integer isDeleted;
    private String name;
    private BigDecimal price;
    private String remark;

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public Long getAddTime() {
        return addTime;
    }

    public void setAddTime(Long addTime) {
        this.addTime = addTime;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MenuBean menuBean = (MenuBean) o;

        if (menuId != null ? !menuId.equals(menuBean.menuId) : menuBean.menuId != null) return false;
        if (addTime != null ? !addTime.equals(menuBean.addTime) : menuBean.addTime != null) return false;
        if (avatarUrl != null ? !avatarUrl.equals(menuBean.avatarUrl) : menuBean.avatarUrl != null) return false;
        if (desp != null ? !desp.equals(menuBean.desp) : menuBean.desp != null) return false;
        if (isDeleted != null ? !isDeleted.equals(menuBean.isDeleted) : menuBean.isDeleted != null) return false;
        if (name != null ? !name.equals(menuBean.name) : menuBean.name != null) return false;
        if (price != null ? !price.equals(menuBean.price) : menuBean.price != null) return false;
        return remark != null ? remark.equals(menuBean.remark) : menuBean.remark == null;
    }

    @Override
    public int hashCode() {
        int result = menuId != null ? menuId.hashCode() : 0;
        result = 31 * result + (addTime != null ? addTime.hashCode() : 0);
        result = 31 * result + (avatarUrl != null ? avatarUrl.hashCode() : 0);
        result = 31 * result + (desp != null ? desp.hashCode() : 0);
        result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0);
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (price != null ? price.hashCode() : 0);
        result = 31 * result + (remark != null ? remark.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "MenuBean{" +
                "menuId=" + menuId +
                ", addTime=" + addTime +
                ", avatarUrl='" + avatarUrl + '\'' +
                ", desp='" + desp + '\'' +
                ", isDeleted=" + isDeleted +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", remark='" + remark + '\'' +
                '}';
    }
}
